﻿using BaseFramework;
using System;

namespace LiteFramework
{
    public abstract class PersistentEntity<T> : Entity<T>, IPersistentEntity
        where T : class
    {

        public bool ExistDataVersionCache(string key)
        {
            return this._hash.ContainsKey(key);
        }

        public object GetDataVersionCache(string key)
        {
            return this._hash[key];
        }

        public void SetDataVersionCache(string key, object value)
        {
            this._hash[key] = value;
        }
    }
}